<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="Web application to give feedback to companies 
managers so customer experience could improve">
<meta name="keywords" content="customer, feedback, net promoter score, nps, best companies, best restaurants">
<meta name="author" content="Markus Karileet">
<link rel="stylesheet" type="text/css" href="{$smarty.const.WEBROOT}/lib/design/css/style.css" title="TellUs"
    media="screen,projection">
<link rel="stylesheet" type="text/css" href="{$smarty.const.WEBROOT}/lib/design/css/portablestyle.css" title="TellUs"
    media="screen,projection">
<link rel="stylesheet" type="text/css" href="{$smarty.const.WEBROOT}/lib/design/css/jquery-ui-1.10.3.custom.css">
<script src="{$smarty.const.WEBROOT}/lib/design/js/jquery.js"></script>
<script src="{$smarty.const.WEBROOT}/lib/design/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="{$smarty.const.WEBROOT}/lib/design/js/jquery.raty.min.js"></script>
<script src="{$smarty.const.WEBROOT}/lib/design/js/javascript.js"></script>
<title>{$lang['title']}</title>
<script type="text/javascript">
var prefix = '{$smarty.const.WEBROOT}';
var passwordsMatchAlert = "{$lang['passwordsMatchAlert']}";
var insertPasswordsAlert = "{$lang['insertPasswordsAlert']}";
var problemWithFeedback = "{$lang['problemWithFeedback']}";
var problemWithRegister = "{$lang['problemWithRegister']}";
</script>
</head>

<body>
        <div id="content">
<h1>{$business->getName()}</h1>
<p><strong>{$lang['rateScale']}</strong></p>
<form action="{$smarty.const.WEBROOT}/?action=save" method="POST"
	id="feedbackForm">
	<input type="hidden" id="code" name="code"
		value="{$business->getCode()}" />
	<input type="hidden" id="mobile" name="mobile"
		value="1" />
	<table style="padding-left:9px;width:100%">
		<tr>
			<td width="131px">{$lang['score']}*</td>
			<script type="text/javascript" >
		    var numberMax = "{if $business->getCode() eq 'viktoria'}5{else}10{/if}";
			</script>
			<td><div id="star"></div> <script type="text/javascript">
					jQuery('#star').raty({
						number : numberMax,
						width: false,
						path : '{$smarty.const.WEBROOT}/lib/design/img',
						hints: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],			
					    iconRange: [
					    	{ range: 1, on: 'star-on-1-big.png', off: 'star-off-1-big.png' },
					        { range: 2, on: 'star-on-2-big.png', off: 'star-off-2-big.png' },
					        { range: 3, on: 'star-on-3-big.png', off: 'star-off-3-big.png' },
					        { range: 4, on: 'star-on-4-big.png', off: 'star-off-4-big.png' },
					        { range: 5, on: 'star-on-5-big.png', off: 'star-off-5-big.png' },
					        { range: 6, on: 'star-on-6-big.png', off: 'star-off-6-big.png' },
					        { range: 7, on: 'star-on-7-big.png', off: 'star-off-7-big.png' },
					        { range: 8, on: 'star-on-8-big.png', off: 'star-off-8-big.png' },
					        { range: 9, on: 'star-on-9-big.png', off: 'star-off-9-big.png' },
					        { range: 10, on: 'star-on-10-big.png', off: 'star-off-10-big.png'}
					    ]
					});
				</script></td>
		</tr>
		<tr>
			<td>{$lang['comment']}*</td>
			<td><textarea class="feedbackInput textareaHeight inputWidth" id="comment"
					name="comment"> </textarea></td>
		</tr>
		<tr>
			<td colspan="2">
				<p class="box">{$lang['getFeedback']}
				</div>
			</td>
		</tr>
		<tr>
			<td>{$lang['email']}</td>
			<td><input type="text" class="feedbackInput inputHeight inputWidth" id="email"
				name="email" /></td>
		</tr>
		<tr>
			<td>{$lang['phone']}</td>
			<td><input type="text" class="feedbackInput inputHeight inputWidth" id="phone"
				name="phone" /></td>
		</tr>
	</table>
	<div class="clearfix"></div>
	<br>
	<p class="readmore">
		<a href="#" onclick="sendForm(jQuery('#feedbackForm'))">{$lang['doneBtn']}</a> »
	</p>
</form>
        
        </div>


</body>
</html>